/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once


#include "UI/ui绘制模板.h"


typedef enum {
	e_颜色模式_RGBA,
}E_颜色模式;



class C_拾色盘 : public C_Widget {

public:
	C_拾色盘(S_UI渲染环境& ctx, S_Props& prop, E_颜色模式 模式);
	~C_拾色盘();


	S_Surface2D* m_背景;
	S_Surface2D* m_字符;
	S_Surface2D* m_图标;

	C_Widget* mui_色轮;
	C_Widget* mui_编辑框;
	vec2	m_拾取坐标;
	S_ColorTake	m_Ct;
private:

};

class C_颜色拾取器 : public C_Widget {

public:
	C_颜色拾取器(S_UI渲染环境& ctx, S_Props& prop, E_颜色模式 模式);
	~C_颜色拾取器();

	S_Surface2D* m_背景;
	S_Surface2D* m_标签;
	S_Surface2D* m_图标;

	S_Props				m_Value;

	static C_拾色盘* g_色盘;

private:

};






